<script lang="ts" setup>
import {ref,defineProps} from 'vue'
import { ElButton} from "element-plus"


const props= defineProps({
    title: {
        type: String,
        default: () => ''
    },
    type:{
        type:String,
        default:()=>'save'
    }
})
const title=ref('标题')

</script>

<template>
        <el-button
        :color="props.type==='save'?'#0d64f1':props.type==='reset'?'#f41414':'whitesmoke'"
        :type="props.type==='save'?'primary':'danger'"
        round
        >{{$props.title}}</el-button>
        
</template>
<style scoped>
.a{
    
color: whitesmoke;
}
</style>